using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ExamServer.Entities
{
    public class tbRolesAndMenus
    {
        //主键 自增长
        [Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int ID { get; set; }
        //外键角色编号
        public int Rid  { get; set; }
        //角色对象
        public tbRoles Role{get;set;}
        //外键菜单编号
        public int MenuID { get; set; }
        //菜单对象
        public Menus Menu{get;set;}
    }
}